package csc.daonjpa.java.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.print.attribute.standard.DateTimeAtCompleted;

/**
 * Entity class for Account table. This is a simple POJO class with annotations to define mapping with DB table
 * @author nvu3
 *
 */
@Entity
@Table(name="inbox")
public class Inbox implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "id")
	private String id;
	
	@Column(name = "message")
	private String message;
	
	@Column(name = "isRead")
	private String isRead;
	
	@ManyToOne
	@JoinColumn(name="loginId")
	private Customer customer;
	
	@Column(name="loginIdTarget")
	private String loginIdTarget;
	
	@Column(name="datetime")
	private Date datetime;

	/**
	 * Required constructor
	 */
	public Inbox() {
	
	}

	public Inbox(String message, String isRead, Customer customer,
			String loginIdTarget, Date datetime) {
		super();
		this.message = message;
		this.isRead = isRead;
		this.customer = customer;
		this.loginIdTarget = loginIdTarget;
		this.datetime = datetime;
	}

	public Date getDatetime() {
		return datetime;
	}

	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}

	public String getIsRead() {
		return isRead;
	}

	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getLoginIdTarget() {
		return loginIdTarget;
	}

	public void setLoginIdTarget(String loginIdTarget) {
		this.loginIdTarget = loginIdTarget;
	}
	
	
}